<script>
  display_object_properties(prompt("Enter the name of object: ",""))
  function display_object_properties(object_string)
  {
    var actual_object=eval(object_string)
    var property_message
    for(var property_name in actual_object)
    {
      property_message+=object_string+"."+property_name+"="+actual_object[property_name]+"<br>"
    }

    document.write(property_message)
  }
  
</script>
